<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>flex布局详解(实验室)</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
      .box {
        width: 100%;
        height: 600px;
        display: flex;
      }
    .left{
        width: 300px;
        background-color: #609;
    }
    .boxlist{
        flex: 1;
        background-color: #f60;
        /* max-width: calc(100% - 200px); */
        display: flex;
        overflow-x: scroll;
    }
    .boxitem{
        display: flex;
        width: 300px;
        height: 300px;
        min-width: 300px;
        max-width: 300px;
        background-color: #f69;
        margin-left: 10px;
    
    }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="left">aaa</div>
      <div class="boxlist">
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
        <div class="boxitem"></div>
      </div>
    </div>
  </body>
</html>
